﻿<!--
 * Almathy Center - VcardWindow.xaml
 * Copyright (C) 2011 Christophe LEMOINE
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
-->
<Window x:Class="AlmathyCenter.VcardWindow" x:Name="window"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:prop="clr-namespace:AlmathyCenter.Properties"
        xmlns:lib="clr-namespace:AlmathyCenter"
        xmlns:extToolkit="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit.Extended"
        Title="Almathy Center - Carte de visite" Height="587" Width="512" Icon="/AlmathyCenter;component/Images/vcard.png" ResizeMode="NoResize" ShowInTaskbar="False" Topmost="True" WindowStartupLocation="Manual" DataContext="{Binding}">
    <DockPanel RenderOptions.BitmapScalingMode="HighQuality">
        <Grid IsEnabled="True" Name="statusBar1" VerticalAlignment="Bottom" Background="#FF293955" DockPanel.Dock="Bottom">
            <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="10">
                <Button Content="Enregistrer" Height="23" HorizontalAlignment="Right" Name="button3" Margin="0,0,10,0" VerticalAlignment="Top" Width="75" IsCancel="False" IsDefault="False" IsEnabled="False" Click="button3_Click" />
                <Button Content="Fermer" Height="23" HorizontalAlignment="Right" Name="button4" VerticalAlignment="Top" Width="75" IsCancel="False" IsDefault="True" Click="button4_Click" />
            </StackPanel>
        </Grid>
        <Grid HorizontalAlignment="Stretch" Name="grid1" VerticalAlignment="Stretch" Background="#FFCED4DF">
            <Grid.Effect>
                <DropShadowEffect Direction="270" Opacity="0.3" />
            </Grid.Effect>
            <Grid Name="grid2" VerticalAlignment="Top" Height="75">
                <Grid.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="White" Offset="0" />
                        <GradientStop Color="#FFCED4DF" Offset="1" />
                    </LinearGradientBrush>
                </Grid.Background>
            </Grid>
            <Label Content="{Binding Jid.Bare}" Height="28" Margin="20,21,27,0" Name="JidLabel" VerticalAlignment="Top" FontSize="10" FontWeight="Bold" />
            <Separator Height="7" Margin="10,42,14,0" Name="separator1" VerticalAlignment="Top" />
            <DockPanel Margin="10,55,14,52" x:Name="uiCV">
                <ScrollViewer VerticalScrollBarVisibility="Auto">
                    <StackPanel Orientation="Vertical" CanVerticallyScroll="True" VerticalAlignment="Top" x:Name="CV">
                        <Border BorderThickness="1" CornerRadius="5" Margin="0,0,0,10" BorderBrush="White">
                            <Expander Margin="10,10,10,10" Name="expander1" VerticalAlignment="Top" FontWeight="Bold" Expanded="expander1_Expanded" IsExpanded="False" ExpandDirection="Down">
                                <Expander.Header>
                                    <StackPanel Orientation="Horizontal">
                                        <Image Margin="4,0,0,0" Width="16" Height="16" Source="pack://application:,,,/Resources/user.png" />
                                        <TextBlock Margin="4,0,0,0" Text="Personnel" />
                                    </StackPanel>
                                </Expander.Header>
                                <Grid x:Name="content1">
                                    <StackPanel Orientation="Vertical" CanVerticallyScroll="True">
                                        <GroupBox Header="Identité" Margin="6,6,6,0" Name="groupBox1" VerticalAlignment="Top" IsEnabled="True" BorderBrush="{x:Null}" BorderThickness="0">
                                            <Grid>
                                                <Label Content="Nom complet:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,10,0,0" Name="label1" VerticalAlignment="Top" Width="157" />
                                                <TextBox FontWeight="Normal" Height="23" IsReadOnly="False" Margin="173,12,23,0" Name="textBox1" VerticalAlignment="Top" TextChanged="textBox1_TextChanged" />
                                                <TextBox FontWeight="Normal" Height="23" Margin="173,41,23,0" Name="textBox2" VerticalAlignment="Top" TextChanged="textBox2_TextChanged" />
                                                <Label Content="Surnom:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,39,0,0" Name="label2" VerticalAlignment="Top" Width="157" />
                                                <Label Content="Nom de famille:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,68,0,0" Name="label3" VerticalAlignment="Top" />
                                                <TextBox FontWeight="Normal" Height="23" Margin="173,70,23,0" Name="textBox3" VerticalAlignment="Top" TextChanged="textBox3_TextChanged" />
                                                <Label Content="Prénom:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,97,0,0" Name="label4" VerticalAlignment="Top" />
                                                <TextBox FontWeight="Normal" Height="23" Margin="173,99,23,0" Name="textBox4" VerticalAlignment="Top" TextChanged="textBox4_TextChanged" />
                                                <Label Content="Dénomination:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,126,0,0" Name="label5" VerticalAlignment="Top" />
                                                <TextBox FontWeight="Normal" Height="23" Margin="173,128,23,0" Name="textBox5" VerticalAlignment="Top" TextChanged="textBox5_TextChanged" />
                                                <Label Content="Deuxième prénom:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,155,0,0" Name="label6" VerticalAlignment="Top" />
                                                <TextBox FontWeight="Normal" Height="23" Margin="173,157,23,0" Name="textBox6" VerticalAlignment="Top" TextChanged="textBox6_TextChanged" />
                                            </Grid>
                                        </GroupBox>
                                        <GroupBox Header="Adresse postale" Margin="6,6,6,0" Name="groupBox2" VerticalAlignment="Top" BorderThickness="0">
                                            <Grid>
                                                <Label Content="Rue:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,10,0,0" Name="label7" VerticalAlignment="Top" Width="157" />
                                                <TextBox FontWeight="Normal" Height="23" IsReadOnly="False" Margin="173,12,23,0" Name="textBox7" VerticalAlignment="Top" TextChanged="textBox7_TextChanged" />
                                                <TextBox FontWeight="Normal" Height="23" IsReadOnly="False" Margin="173,41,23,0" Name="textBox8" VerticalAlignment="Top" TextChanged="textBox8_TextChanged" />
                                                <Label Content="Suite:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,39,0,0" Name="label8" VerticalAlignment="Top" Width="157" />
                                                <Label Content="Code postal:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,68,0,0" Name="label9" VerticalAlignment="Top" />
                                                <TextBox FontWeight="Normal" Height="23" Margin="173,70,23,0" Name="textBox9" VerticalAlignment="Top" TextChanged="textBox9_TextChanged" />
                                                <Label Content="Ville:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,97,0,0" Name="label10" VerticalAlignment="Top" />
                                                <TextBox FontWeight="Normal" Height="23" Margin="173,99,23,0" Name="textBox10" VerticalAlignment="Top" TextChanged="textBox10_TextChanged" />
                                                <Label Content="Région:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,126,0,0" Name="label11" VerticalAlignment="Top" />
                                                <TextBox FontWeight="Normal" Height="23" Margin="173,128,23,0" Name="textBox11" VerticalAlignment="Top" TextChanged="textBox11_TextChanged" />
                                                <Label Content="Pays:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,155,0,0" Name="label12" VerticalAlignment="Top" />
                                                <TextBox FontWeight="Normal" Height="23" Margin="173,157,23,0" Name="textBox12" VerticalAlignment="Top" TextChanged="textBox12_TextChanged" />
                                            </Grid>
                                        </GroupBox>
                                        <GroupBox Header="Contacts" Margin="6,6,6,0" Name="groupBox3" VerticalAlignment="Top" BorderThickness="0">
                                            <Grid>
                                                <Label Content="Ligne fixe:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,10,0,0" Name="label13" VerticalAlignment="Top" Width="157" />
                                                <TextBox FontWeight="Normal" Height="23" IsReadOnly="False" Margin="173,12,23,0" Name="textBox13" VerticalAlignment="Top" TextChanged="textBox13_TextChanged" />
                                                <TextBox FontWeight="Normal" Height="23" IsReadOnly="False" Margin="173,41,23,0" Name="textBox14" VerticalAlignment="Top" TextChanged="textBox14_TextChanged" />
                                                <Label Content="Ligne GSM:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,39,0,0" Name="label14" VerticalAlignment="Top" Width="157" />
                                                <Label Content="Ligne Texto:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,68,0,0" Name="label15" VerticalAlignment="Top" />
                                                <TextBox FontWeight="Normal" Height="23" Margin="173,70,23,0" Name="textBox15" VerticalAlignment="Top" TextChanged="textBox15_TextChanged" />
                                                <Label Content="Adresse Email:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,97,0,0" Name="label35" VerticalAlignment="Top" />
                                                <TextBox FontWeight="Normal" Height="23" Margin="173,99,23,0" Name="textBox35" VerticalAlignment="Top" TextChanged="textBox35_TextChanged" />
                                            </Grid>
                                        </GroupBox>
                                    </StackPanel>
                                </Grid>
                            </Expander>
                            <Border.Background>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="White" Offset="0" />
                                    <GradientStop Color="#FFFFFFC7" Offset="1" />
                                </LinearGradientBrush>
                            </Border.Background>
                        </Border>
                        <Border BorderThickness="1" CornerRadius="5" BorderBrush="White" Margin="0,0,0,10">
                            <Expander Margin="10,10,10,10" Name="expander2" FontWeight="Bold" Expanded="expander2_Expanded">
                                <Expander.Header>
                                    <StackPanel Orientation="Horizontal">
                                        <Image Margin="4,0,0,0" Width="16" Height="16" Source="pack://application:,,,/Resources/building.png" />
                                        <TextBlock Margin="4,0,0,0" Text="Professionnel" />
                                    </StackPanel>
                                </Expander.Header>
                                <Grid x:Name="content2">
                                    <StackPanel Orientation="Vertical" CanVerticallyScroll="True">
                                        <GroupBox Header="Identité" Margin="6,6,6,0" Name="groupBox4" VerticalAlignment="Top" IsEnabled="True" BorderBrush="{x:Null}" BorderThickness="0">
                                            <Grid>
                                                <Label Content="Organisation:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,10,0,0" Name="label17" VerticalAlignment="Top" Width="157" />
                                                <TextBox FontWeight="Normal" Height="23" IsReadOnly="False" Margin="173,12,23,0" Name="textBox17" VerticalAlignment="Top" TextChanged="textBox17_TextChanged" />
                                                <TextBox FontWeight="Normal" Height="23" Margin="173,41,23,0" Name="textBox18" VerticalAlignment="Top" TextChanged="textBox18_TextChanged" />
                                                <Label Content="Poste:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,39,0,0" Name="label18" VerticalAlignment="Top" Width="157" />
                                                <Label Content="Qualification:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,68,0,0" Name="label19" VerticalAlignment="Top" />
                                                <TextBox FontWeight="Normal" Height="23" Margin="173,70,23,0" Name="textBox19" VerticalAlignment="Top" TextChanged="textBox19_TextChanged" />
                                                <Label Content="Rôle:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,97,0,0" Name="label20" VerticalAlignment="Top" />
                                                <TextBox FontWeight="Normal" Height="23" Margin="173,99,23,0" Name="textBox20" VerticalAlignment="Top" TextChanged="textBox20_TextChanged" />
                                            </Grid>
                                        </GroupBox>
                                        <GroupBox Header="Adresse postale" Margin="6,6,6,0" Name="groupBox5" VerticalAlignment="Top" BorderThickness="0">
                                            <Grid>
                                                <Label Content="Rue:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,10,0,0" Name="label21" VerticalAlignment="Top" Width="157" />
                                                <TextBox FontWeight="Normal" Height="23" IsReadOnly="False" Margin="173,12,23,0" Name="textBox21" VerticalAlignment="Top" TextChanged="textBox21_TextChanged" />
                                                <TextBox FontWeight="Normal" Height="23" IsReadOnly="False" Margin="173,41,23,0" Name="textBox22" VerticalAlignment="Top" TextChanged="textBox22_TextChanged" />
                                                <Label Content="Suite:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,39,0,0" Name="label22" VerticalAlignment="Top" Width="157" />
                                                <Label Content="Code postal:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,68,0,0" Name="label23" VerticalAlignment="Top" />
                                                <TextBox FontWeight="Normal" Height="23" Margin="173,70,23,0" Name="textBox23" VerticalAlignment="Top" TextChanged="textBox23_TextChanged" />
                                                <Label Content="Ville:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,97,0,0" Name="label24" VerticalAlignment="Top" />
                                                <TextBox FontWeight="Normal" Height="23" Margin="173,99,23,0" Name="textBox24" VerticalAlignment="Top" TextChanged="textBox24_TextChanged" />
                                                <Label Content="Région:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,126,0,0" Name="label25" VerticalAlignment="Top" />
                                                <TextBox FontWeight="Normal" Height="23" Margin="173,128,23,0" Name="textBox25" VerticalAlignment="Top" TextChanged="textBox25_TextChanged" />
                                                <Label Content="Pays:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,155,0,0" Name="label26" VerticalAlignment="Top" />
                                                <TextBox FontWeight="Normal" Height="23" Margin="173,157,23,0" Name="textBox26" VerticalAlignment="Top" TextChanged="textBox26_TextChanged" />
                                            </Grid>
                                        </GroupBox>
                                        <GroupBox Header="Contacts" Margin="6,6,6,0" Name="groupBox6" VerticalAlignment="Top" BorderThickness="0">
                                            <Grid>
                                                <Label Content="Ligne fixe:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,10,0,0" Name="label27" VerticalAlignment="Top" Width="157" />
                                                <TextBox FontWeight="Normal" Height="23" IsReadOnly="False" Margin="173,12,23,0" Name="textBox27" VerticalAlignment="Top" TextChanged="textBox27_TextChanged" />
                                                <TextBox FontWeight="Normal" Height="23" IsReadOnly="False" Margin="173,41,23,0" Name="textBox28" VerticalAlignment="Top" TextChanged="textBox28_TextChanged" />
                                                <Label Content="Ligne GSM:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,39,0,0" Name="label28" VerticalAlignment="Top" Width="157" />
                                                <Label Content="Ligne Texto:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,68,0,0" Name="label29" VerticalAlignment="Top" />
                                                <TextBox FontWeight="Normal" Height="23" Margin="173,70,23,0" Name="textBox29" VerticalAlignment="Top" TextChanged="textBox29_TextChanged" />
                                                <Label Content="Adresse Email:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,97,0,0" Name="label36" VerticalAlignment="Top" />
                                                <TextBox FontWeight="Normal" Height="23" Margin="173,99,23,0" Name="textBox36" VerticalAlignment="Top" TextChanged="textBox36_TextChanged" />
                                            </Grid>
                                        </GroupBox>
                                    </StackPanel>
                                </Grid>
                            </Expander>
                            <Border.Background>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="White" Offset="0" />
                                    <GradientStop Color="#FFFFFFC7" Offset="0.994" />
                                </LinearGradientBrush>
                            </Border.Background>
                        </Border>
                        <Border BorderThickness="1" CornerRadius="5" Margin="0,0,0,10" BorderBrush="White">
                            <Expander Margin="10,10,10,10" Name="expander3" FontWeight="Bold" Expanded="expander3_Expanded">
                                <Expander.Header>
                                    <StackPanel Orientation="Horizontal">
                                        <Image Margin="4,0,0,0" Width="16" Height="16" Source="pack://application:,,,/Resources/cup.png" />
                                        <TextBlock Margin="4,0,0,0" Text="Divers" />
                                    </StackPanel>
                                </Expander.Header>
                                <Grid x:Name="content3">
                                    <Label Content="Site Internet:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,10,0,0" Name="label30" VerticalAlignment="Top" Width="157" />
                                    <TextBox FontWeight="Normal" Height="23" IsReadOnly="False" Margin="173,12,23,0" Name="textBox30" VerticalAlignment="Top" TextChanged="textBox30_TextChanged" />
                                    <DatePicker Name="dateTimePicker1" Margin="173,41,23,0" FontWeight="Normal" Height="23" VerticalAlignment="Top" BorderThickness="1" SelectedDateFormat="Long" Text="fgdf" IsTodayHighlighted="True" SelectedDateChanged="dateTimePicker1_SelectedDateChanged" />
                                    <Label Content="Date de naissance:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,39,0,0" Name="label31" VerticalAlignment="Top" Width="157" />
                                    <Label Content="Description:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,68,0,0" Name="label32" VerticalAlignment="Top" />
                                    <Canvas Margin="173,70,23,0" Height="100" HorizontalAlignment="Stretch">
                                        <TextBox FontWeight="Normal" Height="100" Width="246" Name="textBox32" VerticalAlignment="Top" HorizontalAlignment="Stretch" AcceptsReturn="True" AcceptsTab="True" MaxLength="255" HorizontalContentAlignment="Left" TextWrapping="Wrap" VerticalScrollBarVisibility="Visible" TextChanged="textBox32_TextChanged" />
                                    </Canvas>
                                </Grid>
                            </Expander>
                            <Border.Background>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="White" Offset="0" />
                                    <GradientStop Color="#FFFFFFC7" Offset="1" />
                                </LinearGradientBrush>
                            </Border.Background>
                        </Border>
                        <Border BorderThickness="1" CornerRadius="5" Margin="0,0,0,10" BorderBrush="White">
                            <Expander Margin="10,10,10,10" Name="expander4" FontWeight="Bold" Expanded="expander4_Expanded">
                                <Expander.Header>
                                    <StackPanel Orientation="Horizontal">
                                        <Image Margin="4,0,0,0" Width="16" Height="16" Source="pack://application:,,,/Resources/photo.png" />
                                        <TextBlock Margin="4,0,0,0" Text="Photo" />
                                    </StackPanel>
                                </Expander.Header>
                                <Grid x:Name="content4">
                                    <Label Content="Fichier Image:" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="10,10,0,0" Name="label33" VerticalAlignment="Top" Width="157" />
                                    <TextBox FontWeight="Normal" Height="23" IsReadOnly="True" Margin="173,12,71,0" Name="textBox33" VerticalAlignment="Top" Width="181" TextChanged="textBox33_TextChanged" />
                                    <Button Height="23" Margin="0,12,42,0" Name="button1" VerticalAlignment="Top" HorizontalAlignment="Right" Width="23" Click="button1_Click">
                                        <Button.Content>
                                            <Image Width="16" Height="16" Source="pack://application:,,,/Resources/bullet_picture.png" />
                                        </Button.Content>
                                    </Button>
                                    <Button Height="23" Margin="0,12,14,0" Name="button2" VerticalAlignment="Top" HorizontalAlignment="Right" Width="23" IsEnabled="False" Click="button2_Click">
                                        <Button.Content>
                                            <Image Width="16" Height="16" Source="/AlmathyCenter;component/Images/bullet_delete.png" />
                                        </Button.Content>
                                    </Button>
                                    <TextBlock Name="textBlock1" Text="L'image choisie devra ne pas dépasser 8ko et de taille comprise entre 32 pixels et 96 pixels de largeur et hauteur. Elle sera redimmensionnée automatiquement si celle-ci ne correspond pas aux dimenssions préconisées." FontWeight="Normal" Height="50" Margin="10,39,14,0" VerticalAlignment="Top" TextWrapping="Wrap" TextTrimming="CharacterEllipsis" TextAlignment="Left" FontSize="10" Width="418" />
                                    <Border BorderThickness="1" CornerRadius="5" BorderBrush="#FFCED4DF" Width="100" Height="100" Margin="0,80,0,0" Background="#64FFFFFF">
                                        <Image x:Name="photo1" Width="96" Height="96" Source="/AlmathyCenter;component/Resources/photo.png" Stretch="Uniform" StretchDirection="DownOnly" />
                                    </Border>
                                    <Label Height="28" Margin="163,202,164,0" Name="label34" VerticalAlignment="Top" FontSize="10" FontWeight="Normal" Width="98" />
                                </Grid>
                            </Expander>
                            <Border.Background>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="White" Offset="0" />
                                    <GradientStop Color="#FFFFFFC7" Offset="1" />
                                </LinearGradientBrush>
                            </Border.Background>
                        </Border>
                        
                    </StackPanel>
                </ScrollViewer>
                
            </DockPanel>
            
            <Separator Margin="10,0,14,39" Name="separator2" Height="7" VerticalAlignment="Bottom" />
            <Label Content="Cliquez sur une des rubriques ci-dessus pour visualiser / éditer leur contenu." Margin="10,0,14,6" Name="label16" FontSize="10" Foreground="Black" Height="40" VerticalAlignment="Bottom" />
        </Grid>
    </DockPanel>
</Window>